
#ifndef PARSE_XML
#define PARSE_XML


#include "public.h"









int ParseControlMessageHead(char *pdata,char * starttime,char * pausetime);

int GetBeginFlag(char *title,char * pbeginflag);


int GetEndFlag(char *title,char *pendflag);


boolean  GetIndex(char *pdata,char *TitleStr,char *pstr);


int GetStartPos(char * pdata);


int GetHeadBuffer(char * pdata, char *pheadbuf);

int GetOneSceneData(char * pdata,char * pseqbuffer,int * pLen);

int GetOnePaneData(char * pdata, char *pOutbuf,int * pLen);

int GetBuffer(char * pdata, char *pbuffer, const char *pflagstr);


int getattrstr(char *pdata, char *pbuf,char *attrname);


int GetQuestion(char *pdata, char *pbuf);

int HaveMore(char *pdata,char * pflagstr);
int HaveImageMore(char *pdata,char * pflagstr);

int GetQABoxBuffer(char *pdata, char *pqaboxbuf);

int GetOptionBuffer(char * pdata, char *pbuffer);
int GetStrIndex(char *pdata, char * pindexbuf);
int GetAnswerBuffer(char *pdata,char *pbuffer);
int GetSeqBuffer(char * pdata, char *pseqbuf);
int GetStreamBuffer(char * pbuf,char * pStreamBuf,int * pLen);





#endif
 
